<%layout("/common/_layout.html"){%>
  <div class="am-cf am-padding">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">系统管理</strong> / <small>泛店员主题权限配置</small> / <small>主题配置</small></div>
  </div>
  <div class="am-g am-form-group am-text-default">
    <div class="am-u-sm-12 am-u-md-12">
      请选择要授权的主题模块：
    </div>
  </div>
  <input type="hidden" id="flowId" name="flowId" value="${flowId!''}"/>
  <input type="hidden" id="themeArr" value='${themeArr!""}'/>
  <div class="am-g am-form-group" id="">
      <div class="am-u-sm-12 am-u-md-12 am-margin-left" style="border:1px rgb(169, 169, 169) solid;width:23%;height:25rem;overflow-y:scroll;float: left;" id="busName">
        <div>
          <input type="checkbox" id="allCheck" onclick="allCheck()"/><span>(全部)</span>
        </div>
        <%for(theme in themeList!){%>
          <div>
            <input type="checkbox" name="ids" value="${theme.id}"/><span>${theme.name}</span>
          </div>
        <%}%>
      </div>
  </div>
  <div class="am-cf"></div>
  <div class="am-g am-form-group am-g-collapse am-padding-horizontal" id="selBusNameArea">
    <div class="am-u-sm-4 am-u-md-1">
      已选主题：
    </div>
    <div class="am-u-sm-8 am-u-md-11" id="selBusName"></div>
  </div>
  <div class="am-margin am-active" id="submit-btns">
    <button type="button" class="am-btn am-btn-warning am-btn-xs" onclick="javascript: History.back();">返回上一级</button>
    <button type="submit" class="am-btn am-btn-primary am-btn-xs" id="submit-btn">提交保存</button>
  </div>
  <script type="text/javascript" src="${base}/template/admin/js/utils.js"></script>
  <script type="text/javascript" src="${base}/template/admin/js/spreadmember_theme_auth_config_data.js"></script>
  <script type="text/javascript">
    var base = "${base}";
  </script>
<%}%>